* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: rgb(209, 70, 72);
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* 毛玻璃背景效果 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-ball {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(10px);
}

/* 容器样式 */
.container {
    max-width: 100%;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.5s ease;
    margin-top: 25vh;
}

.search-container.active {
    margin-top: -60px;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 400px;
    height: 50px;
    background-color: white;
    border-radius: 25px;
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

/* 热搜词条样式 */
.hot-keywords {
margin-top: 20px;
width: 100%;
overflow: hidden;
position: relative;
}

.keywords-container {
display: flex;
flex-wrap: wrap; /* 允许换行显示 */
justify-content: center;
position: relative;
width: 100%;
animation: fadeIn 1s ease-in-out; /* 添加渐变显示动画 */
}

.keyword {
margin: 5px 10px;
padding: 8px 15px;
border-radius: 18px;
white-space: nowrap;
font-size: 14px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
animation: pulseEffect 2s infinite alternate;
background: linear-gradient(135deg, var(--start-color), var(--end-color));
color: white;
font-weight: 500;
position: relative;
overflow: hidden;
}

.keyword::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: rgba(255, 255, 255, 0.1);
transform: rotate(30deg);
animation: shimmer 3s infinite;
}

/* 为关键词添加不同的颜色 */
.keyword:nth-child(5n+1) {
--start-color: #FF6B6B;
--end-color: #FF8E8E;
animation-duration: 2.1s;
}

.keyword:nth-child(5n+2) {
--start-color: #4E6EF2;
--end-color: #7A93FF;
animation-duration: 2.3s;
}

.keyword:nth-child(5n+3) {
--start-color: #FF9F45;
--end-color: #FFBC80;
animation-duration: 2.5s;
}

.keyword:nth-child(5n+4) {
--start-color: #42B883;
--end-color: #69D4A5;
animation-duration: 2.7s;
}

.keyword:nth-child(5n+5) {
--start-color: #9C27B0;
--end-color: #BA68C8;
animation-duration: 2.9s;
}

/* 添加渐变显示动画 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* 添加脉冲效果 */
@keyframes pulseEffect {
0% {
transform: scale(1) translateY(0);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
100% {
transform: scale(1.05) translateY(-3px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
}

/* 添加光泽效果 */
@keyframes shimmer {
0% {
transform: translateX(-100%) rotate(30deg);
}
100% {
transform: translateX(100%) rotate(30deg);
}
}

/* 内容区域 */
.content-area {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.content-area.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: #f3f3f3;
}

.description {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* 食物卡片样式 */
.food-item {
    display: flex;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 10px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.food-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.food-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
}


.food-location, .food-time {
    font-size: 0.75em;
    color: #666;
    margin-top: 2px;
    display: flex;
    align-items: center;
}

.location-icon, .time-icon {
    margin-right: 4px;
    font-size: 0.9em;
}

.food-details {
    font-size: 0.8em;
    color: #333;
    margin: 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.food-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.food-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.food-tag {
    display: inline-block;
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 2px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
}

.food-author {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

.author-name {
    font-size: 12px;
    color: #999;
}

.activity-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.rating {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: #ff9800;
    font-size: 14px;
    font-weight: bold;
}

/* 火锅店特殊样式 */
.hot-pot {
position: relative;
margin-bottom: 15px;
}

.hot-pot-info {
flex: 1;
display: flex;
flex-direction: column;
}

.hot-pot-text {
flex: 1;
}

.hot-pot-text p {
font-size: 12px;
color: #666;
margin-top: 5px;
line-height: 1.4;
}

.follow-btn {
position: absolute;
bottom: 15px;
right: 15px;
background-color: #4e6ef2;
color: white;
border: none;
border-radius: 15px;
padding: 5px 10px;
font-size: 12px;
cursor: pointer;
}

/* 加载动画 */
.loading {
    display: none;
    justify-content: center;
    margin: 20px 0;
}

.loading.visible {
    display: flex;
}

.loading-dot {
    width: 10px;
    height: 10px;
    background-color: #4e6ef2;
    border-radius: 50%;
    margin: 0 5px;
    animation: loading 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}














/* AI提示区域样式 */
.ai-tips {
margin: 20px auto 10px;
width: 90%;
max-width: 400px;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 15px;
display: flex;
align-items: center;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
animation: tipsPulse 3s infinite alternate;
position: relative;
overflow: hidden;
}

.ai-tips::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
animation: tipsSweep 3s infinite;
}

.ai-tips-icon {
font-size: 24px;
margin-right: 15px;
background: linear-gradient(135deg, #4E6EF2, #7A93FF);
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
flex-shrink: 0;
}

.ai-tips-content {
flex: 1;
}

.ai-tips-title {
font-weight: bold;
margin-bottom: 5px;
color: #333;
}

.ai-tips-text {
font-size: 14px;
color: #666;
line-height: 1.4;
}

@keyframes tipsPulse {
0% {
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
100% {
box-shadow: 0 8px 20px rgba(78, 110, 242, 0.2);
}
}

@keyframes tipsSweep {
0% {
left: -100%;
}
50% {
left: 100%;
}
100% {
left: 100%;
}
}




/* 添加新的、更平滑的浮动动画 */
@keyframes float {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    25% {
        transform: translate(30px, 40px) rotate(5deg); /* 调整移动幅度和旋转角度 */
    }
    50% {
        transform: translate(-20px, 20px) rotate(-3deg);
    }
    75% {
        transform: translate(20px, -30px) rotate(4deg);
    }
    100% {
        transform: translate(0px, 0px) rotate(0deg); /* 回到原点形成循环 */
    }
}




/* 搜索框样式 */
/* 新的加载提示框样式 */
.loading-box {
    display: none; /* 默认隐藏 */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.loading-box.visible {
    display: flex; /* 显示 */
    opacity: 1;
    transform: scale(1);
}

.loading-icon {
    font-size: 30px;
    margin-bottom: 15px;
    animation: pulseIcon 1.5s infinite ease-in-out;
}

.loading-text-container {
    height: 20px; /* 固定高度防止跳动 */
    overflow: hidden;
    width: 100%;
}

.loading-text {
    font-size: 14px;
    color: #555;
    line-height: 20px;
}

/* 文字切换动画 */
.fade-slide-enter-active, .fade-slide-leave-active {
    transition: all 0.4s ease;
}
.fade-slide-enter {
    opacity: 0;
    transform: translateY(10px);
}
.fade-slide-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}

/* 图标跳动动画 */
@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 思考状态指示器样式 */
.thinking-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thinking-icon {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.thinking-emoji {
    font-size: 24px;
    margin-right: 8px;
    animation: thinkingPulse 2s infinite;
}

.thinking-dots {
    display: flex;
    gap: 3px;
}

.thinking-dots .dot {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    animation: thinkingDots 1.5s infinite;
}

.thinking-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dots .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.thinking-dots .dot:nth-child(3) {
    animation-delay: 0.6s;
}

.thinking-stage {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* AI思考内容气泡样式 */
.ai-thinking-content {
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease;
}

.thinking-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.thinking-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmerThinking 3s infinite;
}

.bubble-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.ai-icon {
    font-size: 18px;
    margin-right: 8px;
    animation: brainPulse 2s infinite;
}

.ai-label {
    opacity: 0.9;
}

.thinking-text {
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    white-space: break-spaces;
    animation: typewriter 0.5s ease;
    /* max-height: 130px; */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    /* 添加平滑滚动 */
    scroll-behavior: smooth;
    /* 默认不添加遮罩 */
}

/* 只有当内容超过3行时才添加顶部透明渐变遮罩 */
.thinking-text.has-mask {
    /* mask: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 15%, 
        rgba(0, 0, 0, 0.8) 30%, 
        rgba(0, 0, 0, 1) 45%, 
        rgba(0, 0, 0, 1) 100%);
    -webkit-mask: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 15%, 
        rgba(0, 0, 0, 0.8) 30%, 
        rgba(0, 0, 0, 1) 45%, 
        rgba(0, 0, 0, 1) 100%); */
}

/* 自定义滚动条样式 */
.thinking-text::-webkit-scrollbar {
    width: 4px;
}

.thinking-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.thinking-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.thinking-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 最终描述样式 */
.final-description {
    animation: fadeInUp 0.5s ease;
}

.final-description p {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* 动画效果 */
@keyframes thinkingPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes thinkingDots {
    0%, 20% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    80%, 100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes brainPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes shimmerThinking {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}